package com.trace.demo.dto;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

public class FarmingInfoRequest {
    @NotBlank(message = "种植地点不能为空")
    private String location;
    
    private Double latitude;
    private Double longitude;
    
    private String soilType;
    private String irrigationSource;
    
    @NotNull(message = "种植时间不能为空")
    private Date plantingTime;
    
    @NotBlank(message = "品种不能为空")
    private String variety;
    
    private String fertilizer;
    private String pestControl;
    
    private String batchId;
    
    // Getters and Setters
    public String getLocation() {
        return location;
    }
    
    public void setLocation(String location) {
        this.location = location;
    }
    
    public Double getLatitude() {
        return latitude;
    }
    
    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }
    
    public Double getLongitude() {
        return longitude;
    }
    
    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }
    
    public String getSoilType() {
        return soilType;
    }
    
    public void setSoilType(String soilType) {
        this.soilType = soilType;
    }
    
    public String getIrrigationSource() {
        return irrigationSource;
    }
    
    public void setIrrigationSource(String irrigationSource) {
        this.irrigationSource = irrigationSource;
    }
    
    public Date getPlantingTime() {
        return plantingTime;
    }
    
    public void setPlantingTime(Date plantingTime) {
        this.plantingTime = plantingTime;
    }
    
    public String getVariety() {
        return variety;
    }
    
    public void setVariety(String variety) {
        this.variety = variety;
    }
    
    public String getFertilizer() {
        return fertilizer;
    }
    
    public void setFertilizer(String fertilizer) {
        this.fertilizer = fertilizer;
    }
    
    public String getPestControl() {
        return pestControl;
    }
    
    public void setPestControl(String pestControl) {
        this.pestControl = pestControl;
    }
    
    public String getBatchId() {
        return batchId;
    }
    
    public void setBatchId(String batchId) {
        this.batchId = batchId;
    }
} 